package com.admin.persistence.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author jack
 * @since 2019-05-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_person")
public class Person implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private String id;

    @TableField("NAME")
    private String name;

    @TableField("SEX")
    private String sex;

    @TableField("PHONE")
    private String phone;

    @TableField("TEL")
    private String tel;

    @TableField("ADDRESS")
    private String address;

    @TableField("EMAIL")
    private String email;

    @TableField("ID_CARD")
    private String idCard;

    @TableField("ID_CARD_TYPE")
    private String idCardType;

    @TableField("STATUS")
    private int status;

    @Override
    public String toString() {
        return "Person{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", tel='" + tel + '\'' +
                ", address='" + address + '\'' +
                ", email='" + email + '\'' +
                ", idCard='" + idCard + '\'' +
                ", idCardType='" + idCardType + '\'' +
                ", status=" + status +
                '}';
    }
}
